package com.kgc.easyshopping.service;

import com.kgc.easyshopping.entity.Product;
import com.kgc.easyshopping.util.PageInfo;

import java.util.List;
import java.util.Map;

public interface ProductService {
    int deleteByPrimaryKey(Integer pid);

    int insert(Product record);

    int insertSelective(Product record);

    List<Product> adminSelectByProduct(Map<String,Object> params);

    PageInfo<Product> adminGetProductInfo(Map<String,Object> params);

    Product selectByPrimaryKey(Integer pid);

    int updateByPrimaryKeySelective(Product record);

    int updateByPrimaryKey(Product record);
}
